<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:set var="contextRootPath" value="${pageContext.request.contextPath}" />
<c:if test="${pageContext.request.contextPath == '/'}">
	<c:set var="contextRootPath" value="" />
</c:if>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="${contextRootPath}/resource/css/crud.css" />

<script type="text/javascript" src="${contextRootPath}/resource/js/Util.js"></script>
<script type="text/javascript" src="${contextRootPath}/resource/js/jquery-1.5.min.js"></script>
<script type="text/javascript" src="${contextRootPath}/resource/js/jquery.json-2.2.min.js"></script>

</head>
<body>
	<div>
		<span class="page_titile">列表</span>
	</div>

	<table class="records_table" align="center" cellspacing="0" cellpadding="0">
		<tr class="records_table_head">
			<td>id</td>
			<td>name</td>
		</tr>
		<c:forEach items="${resultList}" var="record">
			<tr class="records_table_record">
				<td><c:out value="${record.id}" /></td>
				<td><c:out value="${record.name}" /></td>
			</tr>
		</c:forEach>
	</table>

</body>
</html>
